A = [
    3 4; 
    2 6;
    1 8
];

B =[
    1 7;
    5 3
];

K = kron(A,B);
disp(K)